import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant'
import 'vant/lib/index.css'
import 'amfe-flexible'
import 'normalize.css'
import './style/iconfont.css'
//  导入自己写好的tab栏插件
import plugin from './util/plugin'
//   导入dayjs
import dayjs from 'dayjs'
// 导入dayjs中插件
import relativeTime from 'dayjs/plugin/relativeTime'
import 'dayjs/locale/zh-cn'
dayjs.extend(relativeTime)
dayjs.locale('zh-cn') // 全局使用
Vue.filter('findTime', function (value) {
  return dayjs().to(value)
})
Vue.config.productionTip = false
Vue.use(Vant)
// 挂载全局样式
Vue.use(plugin)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
